package fr.mywiki.test.utils.factory;
 
import java.rmi.RemoteException;

import fr.mywiki.business.account.AccountLite;
import fr.mywiki.model.ejbAdapter.DataController;

/**
 * Contains several ways to access specific data during tests.
 */
public class AccountFactory {
	/**
	 * Returns any account of the database.
	 */
	public static AccountLite getAnyAccount() throws RemoteException {
		return (AccountLite) DataController.getValue(new Long(0),
				AccountLite.TYPE_ENT);
	}
}
